package com.aaa.common.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 报修
 * </p>
 *
 * @author ${author}
 * @since 2020-08-04
 */
@TableName("tb_repair")
public class Repair extends Model<Repair> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "repair_id", type = IdType.AUTO)
    private Integer repairId;
    /**
     * 报修寝室
     */
    @TableField("repair_roomid")
    private Integer repairRoomid;
    /**
     * 报修时间
     */
    @TableField("repair_time")
    private String repairTime;
    /**
     * 维修状态 0，已上报1，已维修
     */
    @TableField("repair_state")
    private Integer repairState;
    /**
     * 维修完成时间
     */
    @TableField("repair_solvetime")
    private String repairSolvetime;
    /**
     * 报修内容
     */
    @TableField("repair_info")
    private String repairInfo;


    public Integer getRepairId() {
        return repairId;
    }

    public void setRepairId(Integer repairId) {
        this.repairId = repairId;
    }

    public Integer getRepairRoomid() {
        return repairRoomid;
    }

    public void setRepairRoomid(Integer repairRoomid) {
        this.repairRoomid = repairRoomid;
    }

    public String getRepairTime() {
        return repairTime;
    }

    public void setRepairTime(String repairTime) {
        this.repairTime = repairTime;
    }

    public Integer getRepairState() {
        return repairState;
    }

    public void setRepairState(Integer repairState) {
        this.repairState = repairState;
    }

    public String getRepairSolvetime() {
        return repairSolvetime;
    }

    public void setRepairSolvetime(String repairSolvetime) {
        this.repairSolvetime = repairSolvetime;
    }

    public String getRepairInfo() {
        return repairInfo;
    }

    public void setRepairInfo(String repairInfo) {
        this.repairInfo = repairInfo;
    }

    @Override
    protected Serializable pkVal() {
        return this.repairId;
    }

    @Override
    public String toString() {
        return "Repair{" +
        "repairId=" + repairId +
        ", repairRoomid=" + repairRoomid +
        ", repairTime=" + repairTime +
        ", repairState=" + repairState +
        ", repairSolvetime=" + repairSolvetime +
        ", repairInfo=" + repairInfo +
        "}";
    }
}
